package com.example.fms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.fms.dto.req.UserReqDto;
import com.example.fms.dto.resp.LoginRespDto;
import com.example.fms.dto.resp.MinOrderRuleRespDto;
import com.example.fms.dto.resp.UserRespDto;
import com.example.fms.entity.StandardFreightRule;
import com.example.fms.entity.User;

import java.lang.reflect.InvocationTargetException;

public interface UserService extends IService<User> {
    Page<UserRespDto> getUserList(UserReqDto req);

    Boolean save(UserReqDto req) throws InvocationTargetException, IllegalAccessException;

    User putType(String uid, Boolean type);


    User putUser(Long id, UserReqDto req);

    UserRespDto getUserById(Long id);

    Boolean deleteUserById(Long id);

    Boolean updateRoleByid(Long id, UserReqDto req);

    User login(UserRespDto req);
}
